export default {	
	setConfig({
		commit,
		state
	}, data) {
		state.appConfig = data;
		sessionStorage.setItem('a_config', JSON.stringify(data));

	},
	//数据缓存 只进行SessionData下的状态改变
	setSessionData({commit,state},parObj){
		for(var i in parObj){
			state.sessionData[i] = parObj[i];
			state.sessionTime[i] = new Date().getTime();
		}
	},
	//定义信息缓存
	setInfoConfig({
		commit,
		state
	}, data) {
		state.infoConfig = data;
		sessionStorage.setItem('b_config', JSON.stringify(data));
	},
	//设置滚动条 以后所有页面全写这
	setScrollTop({commit,state},parObj){
		for(var i in parObj){
			state.scrollTop[i] = parObj[i];
		}
	},

}